/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-10-22
 * Time: 20:56
 */
import java.util.Scanner;

public class Main3{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double len = sc.nextDouble();
        RegularPolygon rp = new RegularPolygon(n, len);
        System.out.println(rp.getSumOfInnerAngles());
        System.out.println(rp.getInnerAngle());
        System.out.printf("%.5f\n", rp.getArea());


    }
}
class RegularPolygon{
    int n;
    double length;
    public RegularPolygon(int n, double length){
        this.n=n;
        this.length=length;
    }
    public double getSumOfInnerAngles(){
        return (n-2)*180;
    }
    public double getInnerAngle(){
        return ((n-2)*180)/n;
    }
    public double getArea(){
        return (n * Math.pow(length, 2)) / (4 * Math.tan(Math.PI / n));
    }
}